import request from '@/utils/request'
import store from '@/store'

export const getUserInfoApi = () => {
  const token = store.state.user.token.token
  return request({
    url: '/v1_0/user/profile',
    headers: {
      // bearer后面有空格
      Authorization: 'Bearer ' + token
    }
  })
}
